package com.drawingtimer.admin.enums;

import lombok.Getter;

@Getter
public enum BizErrorCodeEnum {

	PARAM_INVALID(1001, "参数错误"), PROCESS_CARD_NOT_FOUND(1002, "未找到对应的工序流转卡"), MATERIAL_CODE_EMPTY(1003, "未获取到物料编码"),
	PROCESS_CODE_EMPTY(1004, "未获取到工序编码"), PROCESS_CARD_NUMBER_EMPTY(1005, "获取物料编码失败"), PLM_CALL_FAIL(1006, "PLM接口调用失败"),
	PLM_RETURN_EMPTY(1007, "PLM接口返回内容为空"), PDF_URL_EMPTY(1008, "PDF地址为空"), PDF_URL_INVALID(1009, "PDF地址无效"),
	PDF_DOWNLOAD_FAIL(1010, "下载PDF文件失败"), PLM_FILE_NOT_FOUND(1011, "未找到PLM文件"),;

	private final int code;

	private final String message;

	BizErrorCodeEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

}
